home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
windows
/
yg501w95.zip
/
YFIND.MAN
< prev
next >
Wrap
Text File
|
1996-06-17
|
3KB
|
90 lines
YFind(1) User Commands YFind(1)
NAME
YFind - search a file for a pattern
SYNOPSIS
YFind [ -bchilnsvw[1-9] ] regular-expression
[ filename ... ]
DESCRIPTION
The YFind command searches files for a pattern and prints
all lines that contain that pattern.
Normally, each line found is copied to standard output. The
file name is printed before each line found if there is more
than one input file.
Filenames can be specified with MS-DOS "wild chars" such as
* and ? (common in most MS-DOS applications for "any string"
and "any character").
OPTIONS
The following options are supported:
-[1-9] Do not interpret the pattern as a regular
expression, but a plain text and allow 1 to 9
errors/approximations.
-b Precede each line by the block number on
which it was found. This can be useful in
locating block numbers by context (first
block is 0, each block is 512 bytes long).
-c Print only a count of the lines that contain
the pattern.
-f Precede each line by the name of the file.
-i Ignore upper/lower case distinction during
comparisons.
-n Precede each line by its line number in the
file (first line is 1).
-s Suppress error messages about nonexistent or
unreadable files
-v Print all lines except those that contain the
pattern.
EXAMPLES
To find all uses of the word "Posix" (in any case) in the
file text.mm, and write with line numbers:
example% YFind -i -n posix text.mm
To find all empty lines in the standard input:
example% YFind ^$
or
example% YFind -v .
To find all uses of either "toto", "tota" or "toti" in the
file text.mm, and write with line numbers:
example% YFind -1 toto text.mm
EXIT STATUS
The following exit values are returned:
0 one or more matches were found
1 no matches were found
2 syntax errors or inaccessible files (even if
matches were found).
NOTES
Lines are limited to 1024 characters; longer lines are
truncated.
INSTALLATION
YFind is to be installed in the same directory as YGrep32.DLL
in order to find it when needed for operation. The simplest
location is certainly the C:\WINDOWS directory.